package com.java.star.novel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.java.star.novel.entity.Novel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 小说表 Mapper 接口
 * </p>
 *
 * @author 零限Lx
 * @since 2023-07-13
 */
public interface NovelMapper extends BaseMapper<Novel> {

    void incrementCommentCount(Long novelId);

    public List<Novel> recommended(@Param("novelId") int novelId, @Param("categoryId") int categoryId);
}
